package com.forekonw.demo13;

import java.util.ArrayList;
import java.util.List;

public class ListUse {
    int a0 =0;
    int a1 =0;
    int a2 =0;
    int a3 =0;
    int a4 =0;
    int a5 =0;
    int a6 =0;
    int a7 =0;
    int a8 =0;
    int a9 =0;
    int a10 =0;
    int a11 =0;
    int a12 =0;
public void li (String string){
    String[] s = string.split("");
    List<String> list = new ArrayList<>();
    for (int i = 0 ;i <s.length;i++){
        list.add(s[i]);
    }
    List<String> list1 = new ArrayList<>();
    for(int i = 0 ; i <list.size();i++){
        for (int j = 1;j<list.size()-1;j++){
            String aa = "i+j";
            list1.add(aa);
        }
    }
    for (String s1 :list1) {
        if (s1.equals("ab")){
            a0++;
        }else if (s1.equals("bc")){
            a1++;
        }else if (s1.equals("cd")){
            a2++;
        }else if (s1.equals("de")){
            a3++;
        }else if (s1.equals("ef")){
            a4++;
        }else if (s1.equals("fg")){
            a5++;
        }else if (s1.equals("gh")){
            a6++;
        }else if (s1.equals("hi")){
            a7++;
        }else if (s1.equals("ij")){
            a8++;
        }else if (s1.equals("jk")){
            a9++;
        }else if (s1.equals("kl")){
            a10++;
        }else if (s1.equals("lm")){
            a11++;
        }else if (s1.equals("mn")){
            a12++;
        }
    }
}
}
